package com.googlecode.connectlet.machine.provider.param;

import java.io.IOException;
import java.net.InetAddress;

import com.googlecode.connectlet.machine.provider.MachineConnection;

public class MachineConnectionWithKey extends MachineConnection {
	private byte[] key;

	public MachineConnectionWithKey(MachineConnection conn, byte[] key) {
		super(conn);
		this.key = key;
	}

	public MachineConnectionWithKey(InetAddress ip, final int port, byte[] key) {
		super(ip, port);
		this.key = key;
	}

	public MachineConnectionWithKey(String host, int port, byte[] key) throws IOException {
		super(host, port);
		this.key = key;
	}

	public byte[] getKey() {
		return key;
	}
}